package fsoft.com.vn.directory.form;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Entity
@Table(name="org")
public class Organization {
	
	@Id
	@Column(name="id")
	@GeneratedValue
	private Integer id;
	
	public Integer getId() {
		return id;
	}
	
	@ManyToOne
	@JoinColumn(name = "addressId")
	private Address address;

	@NotEmpty
	@Column(name="name")
	private String name;
	
	@NotEmpty
	@Column(name="description")
	private String description;

	@Column(name="leadcontact")
	private String leadcontact;
	
	@Column(name="reff")
	private boolean reff;
	
	@Column(name="exp")
	private boolean exp;
	
	@NotEmpty
	@Column(name="typeofbusiness")
	private String typeofbusiness;
	
	@Column(name="siccode")
	private String siccode;
	
	@Column(name="descriptionfull")
	private String descriptionfull;
	
	@NotEmpty
	@Column(name="phone")
	private String phone;	
	
	@Column(name="fax")
	private String fax;	
	
	@Column(name="email")
	private String email;	
	
	@Column(name="website")
	private String website;	
	
	@Column(name="charity")
	private String charity;	
	
	@Column(name="company")
	private String company;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLeadcontact() {
		return leadcontact;
	}

	public void setLeadcontact(String leadcontact) {
		this.leadcontact = leadcontact;
	}

	public boolean getReff() {
		return reff;
	}

	public void setReff(boolean reff) {
		this.reff = reff;
	}

	public boolean getExp() {
		return exp;
	}

	public void setExp(boolean exp) {
		this.exp = exp;
	}

	public String getTypeofbusiness() {
		return typeofbusiness;
	}

	public void setTypeofbusiness(String typeofbusiness) {
		this.typeofbusiness = typeofbusiness;
	}

	public String getSiccode() {
		return siccode;
	}

	public void setSiccode(String siccode) {
		this.siccode = siccode;
	}

	public String getDescriptionfull() {
		return descriptionfull;
	}

	public void setDescriptionfull(String descriptionfull) {
		this.descriptionfull = descriptionfull;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getCharity() {
		return charity;
	}

	public void setCharity(String charity) {
		this.charity = charity;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

}